<?php 

class SmartyFetch{
	
	function fetchWaitingForOtherPlayersTPL($smarty, $data){
		$ret = array();
		$DB = new DB();
		$con = $DB->conDB();
		$ret['debug'] .= "Start fetchWaitingForOtherPlayersTPL <br>\n";
		
		if(is_array($data) && count($data) > 0){
			$smarty->assign("data", $data);
			$fetchedData = $smarty->fetch("find_match/modals/waitingForOtherPlayers.tpl");
			$ret['data'] = $fetchedData;
			$ret['status'] = true;
		}
		
		else{
			$ret['status'] = "data = 0";
		}
		
		
		$ret['debug'] .= "End fetchWaitingForOtherPlayersTPL <br>\n";
		
		return $ret;
	}
	
}

?>